/*
 * RabinKarp.h
 *
 *  Created on: 20/mag/2012
 *      Author: matteo
 */

#ifndef RABINKARP_H_
#define RABINKARP_H_

#include "HashManager.h"
#include "RollingHash.h"


class RabinKarp {
public:
	RabinKarp(char* text_string, char* pattern);
	virtual ~RabinKarp();

	bool match();
	bool equal(VECTOR_LIMIT& l1, VECTOR_LIMIT& l2);

private:
	RollingHash*	mp_str;
	HashManager*	mp_pattern;
};


#endif /* RABINKARP_H_ */
